package com.bbdjt.weixin.model;


import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.ibatis.type.Alias;

@Alias("forumPost")
@Table(name = "forum_post")
public class ForumPost implements Serializable  {
	
	@Transient
	private String leaveContent;
	
	@Transient
	private Integer leavePatientId;
//使用@Transient注解可以忽略字段,添加该注解的字段不会作为表字段使用
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	//论坛帖子ID							
	@Column(name = "id")
	private Integer id;
	//帖子名称							
	@Column(name = "forum_name")
	private String forumName;
	//帖子内容							
	@Column(name = "forum_content")
	private String forumContent;
	//发帖人ID							
	@Column(name = "patient_id")
	private Integer patientId;
	//帖子状态(0 未审核 1 已审核 2 已拒绝)							
	@Column(name = "forum_type")
	private Integer forumType;
	//发帖时间							
	@Column(name = "create_date")
	private Date createDate;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public String getForumName() {
		return forumName;
	}

	public void setForumName(String forumName) {
		this.forumName = forumName;
	}
	public String getForumContent() {
		return forumContent;
	}

	public void setForumContent(String forumContent) {
		this.forumContent = forumContent;
	}
	public Integer getPatientId() {
		return patientId;
	}

	public void setPatientId(Integer patientId) {
		this.patientId = patientId;
	}
	public Integer getForumType() {
		return forumType;
	}

	public void setForumType(Integer forumType) {
		this.forumType = forumType;
	}
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}